#ifndef PASSPORTWIDGET_H
#define PASSPORTWIDGET_H

#include <QWidget>
#include <QGraphicsScene>
#include <QValidator>

namespace Ui {
class PassportWidget;
}

class QDate;


class PassportWidget : public QWidget
{
    Q_OBJECT
    
public:
    PassportWidget(QWidget *parent = 0);
    ~PassportWidget();

    void setup();
    void loadFoto(const QString& path);
    void clearAll();
    QString name() const;
    QString surname() const;
    QString secName() const;
    QDate dob() const;
    bool isMan() const;
    float fathersHeight() const;
    float mothersHeight() const;
    QString fotoPath() const;
    QString comment() const;
    void createConnectToPacient();

private slots:
    void on_btnChooseFoto_clicked();
    void setCommentToPacient();

private:
    Ui::PassportWidget *ui;
    QString mFotoPath;
    QGraphicsScene mFotoScene;
    QGraphicsPixmapItem *mFotoItem;
    QIntValidator *mHeightValidator;
};

#endif // PASSPORTWIDGET_H
